import Vue from 'vue'
import App from './App'
import uniNavBar from '@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue';
import myConfig from '@/myConfig.js';
import safeHightBox from '@/components/safeHightBox/safeHightBox.vue';
Vue.component('uni-nav-bar',uniNavBar);
Vue.component('safe-hight-box',safeHightBox);
Vue.config.productionTip = false
/*返回上一页*/
Vue.prototype.goBack = () => {
	uni.navigateBack({
		delta: 1
	})
}
/*去非tab页面*/
Vue.prototype.goTo = (url)=>{
	uni.navigateTo({
		url
	})
}
// 接口fail
Vue.prototype.apiFail = function(){
	uni.showToast({
		title:'出错了，请稍后再试',
		icon:'none',
		duration:1200
	});
}
//全局变量
Vue.prototype.myConfig = myConfig;
App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
